package com.spzx.channel.controller;

import com.spzx.channel.service.TestService;
import com.spzx.common.core.web.controller.BaseController;
import com.spzx.common.core.web.domain.AjaxResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController extends BaseController {
    @Resource
    private TestService testService;
    @RequestMapping("/testLock")
    public AjaxResult testLock(){
        //测试分布式锁
        testService.testLock();
        return success();
    }
}
